<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>名片</title>
  <style>
    html,
    body {
      margin: 0;
      padding: 0;
    }

    .container {
      display: flex;
      justify-content: center;
      justify-items: center;
      align-items: center;
      align-content: center;
      align-self: center;
      height: 100vh;
    }

    .container img {
      max-width: 100%;
      max-height: 100%;
    }
  </style>
</head>
<body>
  <div class="container">

    <img id="img" src="https://qicaiyun.qusaoma.cn/249131a359afb9b48b0472e721f692861643025104024.jpg" alt="名片">


  </div>

  <script>
    window.addEventListener("DOMContentLoaded", function () {
      var img = document.getElementById('img')
      var map = {}
      window.location.search.replace(/([^&]*?)\=(.*?)(&|$)/gi, function (a, key, value) {
        map[key.replace(/\?/gi, '')] = value
      })
      console.log('map', map)
      var qr = map.qr
      if (!qr) {
        return
      }
      img.src = decodeURIComponent(qr)
    }, false)
  </script>
</body>
</html>